<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>

    <style>
        
    </style>
</head>

<script>
    

    Promise.resolve(1)
    .then(
        value => console.log('then 1')
    )
    .then(
        value => {
            console.log('then 2')
        }
    )
    .then(
        value => {
            console.log('then 3')
        }
    )

    /* 
        指定的所有then()方法中, 状态对应的回调函数都会执行:
            'then 1'
            'then 2'
            'then 3'
    
    */

</script>

<body>
    
</body>

</html>